package com.zxh.dubbozxh.framework.register;

import java.util.HashMap;
import java.util.Map;

/**
 * @ProjectName: Dubbo-zxh
 * @Package: com.zxh.dubbozxh.framework.protocol.register
 * @ClassName: LocalRegister
 * @Author: zxh
 * @Description: 供服务端自己在反射调用的时候根据服务名称找到对应的实现
 * @Date: 2022/3/27 19:46
 * @Version: 1.0
 */
public class LocalRegister {

    private static Map<String,Class> map = new HashMap<>();

    public static void register(String interfaceName,Class implClass){
        map.put(interfaceName,implClass);
    }

    public static Class get(String interfaceName){
        return map.get(interfaceName);
    }

}
